


#ifndef _MAIN_H
#define _MAIN_H

#undef F_CPU
//#ifndef DOUBLE_F
#define F_OSC 1000000		           /* oscillator-frequency in Hz */
#define F_CPU 1000000					/* oscillator-frequency in Hz */
//#else
//#define F_OSC 2000000		           /* oscillator-frequency in Hz */
//#define F_CPU 2000000					/* oscillator-frequency in Hz */

//#endif

#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <inttypes.h>
#include <string.h>


#define UART_BAUD_RATE 9600
#define UART_BAUD_CALC(UART_BAUD_RATE,F_OSC) ((F_OSC)/((UART_BAUD_RATE)*16l)-1)

#define BIT(x) (1 << (x))





#define u32 uint32_t
#define i32 int32_t
#define i16 int16_t
#define u16 uint16_t
#define i8 int8_t
#define u8 uint8_t




#endif

